//
//  ShopInfoModel.swift
//  XiaoJingMallSwift
//
//  Created by beisheng03 on 2017/8/7.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit

class ShopInfoModel: NSObject {
    var distance = "-999"
    var merchant_star = "-999"
    var merchant_id = "-999"
    var merchant_name = "-999"
    var merchant_logo = "-999"
    var merchant_class_text = "-999"
    var img_url = "-999"
    
    init(dic : [String : AnyObject]) {
        super.init()
        
        setValuesForKeys(dic)
        
    }
    
    
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
        
    }
    
    
    //在swift中想要打印对象要以下重写属性
    override var description: String{
        let keys = ["distance","merchant_star","merchant_id","merchant_name","merchant_logo","merchant_class_text","img_url"]
        let dic = dictionaryWithValues(forKeys: keys)
        return "\(dic)"
    }

}
